﻿<%@ Page Title="SchoolsManage" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SchoolsManage.aspx.cs" Inherits="WebApplication1.SchoolsManage" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        SchoolsManage
    </h2>
    <p>
        &nbsp;</p>
    <asp:Panel ID="Panel1" runat="server" Height="322px">
        <asp:GridView ID="gdvSchools" runat="server" OnRowDeleting="gdvSchools_RowDeleting"
            OnRowEditing="gdvSchools_RowEditing" AutoGenerateColumns="False" 
            AllowPaging="True" PageSize="5" 
            onpageindexchanging="gdvSchools_PageIndexChanging">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="btnEditSchools" Text="编辑" runat="server" CausesValidation="false"
                            CommandName="Edit" />
                        <asp:Button ID="btnDeleteSchools" Text="删除" runat="server" CausesValidation="false"
                            CommandName="Delete" OnClientClick="return confirm('你确定要删除吗？')" />
                        <asp:Button ID="btnManageCourse" Text="课程管理" runat="server" CausesValidation="false"
                            CommandName="CourseManage" CommandArgument='<%#Eval("Id") %>' OnCommand="CourseManage_Command" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Name" HeaderText="机构名称" />
                <asp:BoundField DataField="Address" HeaderText="机构地址" ReadOnly="True" />
                <asp:BoundField DataField="Phone" HeaderText="电话" />
                <asp:BoundField DataField="Popularity" HeaderText="热度" />
                <asp:BoundField DataField="SL_Integrate" HeaderText="星级-综合" />
                <asp:BoundField DataField="SL_Quality" HeaderText="星级-质量" />
                <asp:BoundField DataField="SL_Price" HeaderText="星级-价格" />
                <asp:BoundField DataField="SL_Service" HeaderText="星级-服务" />
                <asp:BoundField DataField="SL_Environment" HeaderText="星级-环境" />
                <asp:BoundField DataField="Type" HeaderText="机构类型" />
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <p>
        <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="新增" />
    </p>
</asp:Content>
